﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Loja.Banco;
using Loja.Controles.Aplicação;
using Loja.Aplicação;
using System.Collections;
using Loja.Padrao;
using Microsoft.Reporting.WinForms;

namespace Loja.Telas
{
    public partial class RelatorioVendas : PadraoRelatorio
    {
        private Controle controle;

        private DateTime dtInicio;

        private DateTime dtFim;

        public RelatorioVendas(Controle controle, DateTime dtInicio, DateTime dtFim)
        {
            this.controle = controle;
            this.dtInicio = dtInicio;
            this.dtFim = dtFim;
            InitializeComponent();
        }

        private void RelatorioVendas_Load_1(object sender, EventArgs e)
        {// TODO: This line of code loads data into the 'dsRelatorioVendas.vw_Vendas' table. You can move, or remove it, as needed.
            
            this.vw_VendasTableAdapter.Fill(this.dsRelatorioVendas.vw_Vendas, dtInicio, dtFim);
            this.reportViewer1.RefreshReport();            
        }
    }
}
